set progress properly