basics of rectification