code seperated. easier to analyse and read.