made params final and used new helper method for get data from a field