ADDED DEBUG AND CAPSLOCK