homework error fixes