added validate, fixed overlay