added posi_to_pixel();