updated stored functions