fixed compilor errors