move fragment to generic code
update