update to function