fixed compliation errors