added cropap check