added errors check for epsilon