defining isAPP