added cleanSchemas method