finalized the app