changed to a method not involving the shape API