add function to access the shape