add check function fields
fixed check fields function