refactored feedback to array

refactored feedback into array to make code more manageable