fixed inequality bugs due to improper explanation