changing class to final