working on progress rectangle