check in app logic