somewhat optimizing