removed exception output if distance is not specified