before bringing in fragment