remove unnecessary period