most of functions for "smart" poly system generation are in