better ida functions