added skeleton function for validate