select minimum squares value