prevent undefined index
prevent undefined index
spacing