added option frequency and amplitude