dynamic spacing not working