refact the 3th dependency function.