adding new better method to add the overlay