visible function added