cleaned up adding feedback function