more controller logic