added poly dir functions