write suggestions function