adding some app logic