started to add code for wave changes