fixed with validation. should work