added finally block to all the methods