working on wave pattern