Blackberry doing better since ditching the smartphone business