core code for my application