refactored cuke step