refactor multiStep to do it shorter