move old code to fragments