validated all code