fixed spelling and updated variables