working through compilation errors