adding derived columns