update spacing in codes