added overlay functions