used correct variables