I have a custom function like below in which i use to give parameter as first column and last column but now i am looking for a solution where i doesn\'t need to give first