build fragment