This function takes two argument, but you seem to pass only one when you call it.