continued work on step function