moved hydratile hide code to top