got hide function to work