adding helpers and validations