comments added for lifecycle methods