cut some func