make wave size configurable