Remove uncessary array creation