cutting global functions