updated method signature