resolve compile errors