move adding to body to separate function