lines 4-5 have you checked this logic in terminal?