added coords to units. Coordinates are values in range [0,1) and mean position in ceil