fixed mistake of variables