add src class reverse logic