upgraded code to express 4