fixing func def