simplify structure, only one R file