changed fragment code