delay fns defined only in one place and working lcd implementation