fixed minor compiler errors