out put based on step number