divide four functions into diff divs