remove return from error checker