saved week api code after some tests