changed it to work with his broken marking script.