fixed compling errors