replaced instance varaible with local variable