fixed suggest algorithm