first implementation of hidden