add placeholder 0 when necessary