added when method, passing test