define const variable delay instead of magic number '2'