refactoring
added validation