added two functions