correct order of build