adding a when with an eval string