accepted function changed