working, but not sure where these "undefined" strings are coming from