added tan + test methods