fixed conversions in lab1-2