checking for compile first helps