refactor to make it potentiall support score
compactLine can now collect score