added header functionality