updated varibale type of valiate method