before using fragments