two global variable has been added in it