added poly fill code