parse shape