function accepts return type