fixed constructor arguments validation