simplyfy :controller logic