implemented step definition function.