minor optimization in one step