two functions are now functional.