more readable status update function