another failed attempt at using obj