intermediate version with errors