use the right function