pushing different types to an array