using parseFloat for offset and position methods and removed num helper method