figured out how to work with fragments