tired to make complex object work in alert