to check compatibility with fragment