reducing an object to shapes