side effects function type