orientation first convert to float then int