add check function to all methods