use self invoking automated function instead