update/cleanup code