try to avoid using of batch