correct select function call