started implementing janus functions