moved hide method