changed dict to shorthand