Extract side efect to it's own function
Extract side efect to it's own function