stored each data needed in seprate variables