shape check