building a class with functions for fixing isolated cells