trying display function (reverted from commit ae4baa9356ca47ef766eefada1c3aa79bf9780c0)