fixed comipilation errors