minor changes of data types i.e converted from double to int