added a function prototype