functions can be added as validator