fixed getType and boundaries in level