getPosition should return int.