fixing computer logic issues