updated to set y min to 0