added stored functions