algorithm check in