multiple authorization dirty code