trivial change
created variables and did some refactoring