added context argument to the selector method