improving tag directive