changed var to param