converting to fragments