fixed bug for ycond2 + for reverse latitudes