inlined & renamed functions for unwarppping module