Slight variable change; removal of redundant variable