moved parse tranaction outside of class