another func using the wrong api