added logic to method stubs