go format and added stop channel