removed 5th baseline arguement as it is not used in function