1. coordinate reversal bug  fixed