added getCheckins function