fixed warnings related to 'parameters should be final'