calling the right function helps.