added repeats parsing to the mask
go fmt