added step-size, thanks to BartoszKP@stackoverflow