A new criterion for starlike functions