moved code to right fragment