tidy up sealed classes