use one parameter for column and direction