added freq analysis