changed varibale type