two function added