stole a function