added a levelWidth and levelHeight