removed closure from config