attempt to simplify pen tool