added the grainaulity of buffer
fixed the pause feature