remove boilerplate from feedback code