BASIC conversion