got rid of hard-coded "parameters" array