added .hidden check