added some func.