now working before introducing the array