added hide function