changed position System from int to float