more compilation fixes for ex 1