minor changes to compile