computations done inside methods