life cycle method fixes