parsing shape types