fixing small compiler errors