added simplify feature