added function to find peak feature