simplify blackberry logic