added wave count