added wave functionality to index