removing unnecessary , in the end