he was assigned to an artillery regiment with the rank of major