finished main steps