commited new repo checking algorithm
merge