added beginnings of marking spaces control