fixed some bugs, and added the suggestion functionality