overloaded now also works with methods