@redconfetti when is function being called?