removed overlay function