work on fragment class