return array now instead of undefined