stuck with incorrect allocation