local variable 'profile' added with a default value of None