removed all the NSLog which were for testing purpose