factor checking