remove unnecessary func