getting schema correct