changed user_app data type to integer