fixing shadow hiding and showin