get the instert to function right