implementation of pull method in polygon