add two function for practice