fix func signature