its working but spec is failing