nivel instead level and other fixes