added lines to the left hand side commented out flow code