to block phone based on condition