two functions created