modular functions for high level fun.