The both alternatives don't pass the test but work correctly for me...