two functions added