set headers method added