added method resolution. Figure out why it's not working as expected