checking in completion function