fixed function that creates the standart array