clean up src code