added init and renderBaseline functions