added [0] to get first element of array