fix for compile errors