initial reveal function now working