fixing caps compiler errors