removed garbage character at the end