remove css and useless coordinates