commit before trying to put receiver outside function again