styling
merging
worked on first 3 functions