added pitch estimation