fixed function not invoking itsself