added ability for positive and negative codes to give different feedback