some minor changes to overlay