changed constants to string literals, and fixed a var problem