removes unnecessary return instruction
merge