proper use of fragments