fixing SPACE errors