making wave active/inactive