intermediate step with compile_model working