bug fixed by removing headerfile declaration