fixed main
reg