added evan's library code