edit: fixed more syntax, var is now a string, not an int