fixed header fixed global variables added new function to application