added my own version of yat