remove extra line endings
store hash with keys that are integers
add action controller parameters to the mix