adding variables and making it fast