found shorter solution